using System;
using System.Collections.Generic;
using System.Text;

namespace Horizon
{
    /// <summary>
    /// Represents a limitation imposed on a search, such as one specific library branch or a given collection
    /// </summary>
    [Serializable]
    public class SearchLimit
    {
        string descValue, keyValue;

        public SearchLimit()
        {
        }

        /// <summary>
        /// Creates a search limit for a given key and description
        /// </summary>
        /// <param name="key"></param>
        /// <param name="description"></param>
        public SearchLimit(string key, string description)
        {
            keyValue = key;
            descValue = description;
        }

        /// <summary>
        /// The display description for this search limit
        /// </summary>
        public string Description
        {
            get { return descValue; }
            set { descValue = value; }
        }

        /// <summary>
        /// The internal identifier for this search limit
        /// </summary>
        public string Key
        {
            get { return keyValue; }
            set { keyValue = value; }
        }

    }
}
